<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邻里 - 客服中心</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            min-height: 100vh;
        }
        
        .header {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .back-btn {
            font-size: 1.2rem;
            margin-right: 15px;
            cursor: pointer;
        }
        
        .header-title {
            flex: 1;
            text-align: center;
            font-size: 1.2rem;
            font-weight: bold;
        }
        
        .points {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: bold;
        }
        
        .content {
            padding: 20px 15px;
        }
        
        .search-box {
            background: white;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: relative;
        }
        
        .search-input {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
        }
        
        .search-icon {
            position: absolute;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            color: #2575fc;
            font-size: 1.2rem;
        }
        
        .contact-methods {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .contact-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s ease;
        }
        
        .contact-card:active {
            transform: scale(0.98);
        }
        
        .contact-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #e6f0ff;
            color: #2575fc;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.5rem;
        }
        
        .contact-title {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .contact-desc {
            color: #666;
            font-size: 0.85rem;
        }
        
        .faq-section {
            background: white;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .section-title {
            padding: 15px 20px;
            font-weight: bold;
            font-size: 1.1rem;
            border-bottom: 1px solid #f5f5f5;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .view-all {
            font-size: 0.9rem;
            color: #2575fc;
            text-decoration: none;
            font-weight: normal;
        }
        
        .faq-item {
            padding: 16px 20px;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .faq-item:last-child {
            border-bottom: none;
        }
        
        .faq-question {
            font-weight: 500;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .faq-answer {
            color: #666;
            font-size: 0.9rem;
            margin-top: 10px;
            display: none;
        }
        
        .faq-answer.show {
            display: block;
        }
        
        .service-hours {
            background: #f8f9ff;
            border-radius: 8px;
            padding: 12px 15px;
            margin: 15px 20px;
            font-size: 0.85rem;
            color: #666;
            border-left: 3px solid #2575fc;
        }
        
        .self-service {
            background: white;
            border-radius: 12px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .service-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .service-item:last-child {
            border-bottom: none;
        }
        
        .service-info {
            display: flex;
            align-items: center;
        }
        
        .service-icon {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            color: #2575fc;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .service-title {
            font-weight: 500;
        }
        
        .arrow {
            color: #999;
        }
        
        .contact-info {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .info-item {
            display: flex;
            margin-bottom: 15px;
        }
        
        .info-item:last-child {
            margin-bottom: 0;
        }
        
        .info-icon {
            width: 24px;
            height: 24px;
            margin-right: 15px;
            color: #2575fc;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .info-content {
            flex: 1;
        }
        
        .info-title {
            font-weight: 500;
            margin-bottom: 4px;
        }
        
        .info-desc {
            color: #666;
            font-size: 0.9rem;
        }
        
        .menu {
            background: white;
            margin-top: 30px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
        }
        
        .menu-item {
            padding: 16px 20px;
            border-bottom: 1px solid #f0f0f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .menu-item:last-child {
            border-bottom: none;
        }
        
        .menu-item span {
            font-weight: 500;
        }
        
        .rating {
            display: flex;
            justify-content: center;
            margin: 20px 0;
        }
        
        .rating-text {
            text-align: center;
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 15px;
        }
        
        .star {
            color: #ddd;
            font-size: 1.5rem;
            margin: 0 2px;
            cursor: pointer;
        }
        
        .star.active {
            color: #ffc107;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="back-btn">
                <i class="fas fa-arrow-left"></i>
            </div>
            <div class="header-title">客服中心</div>
            <div class="points">积分: 350</div>
        </div>
        
        <div class="content">
            <div class="search-box">
                <input type="text" class="search-input" placeholder="请输入您的问题...">
                <div class="search-icon">
                    <i class="fas fa-search"></i>
                </div>
            </div>
            
            <div class="contact-methods">
                <div class="contact-card">
                    <div class="contact-icon">
                        <i class="fas fa-phone-alt"></i>
                    </div>
                    <div class="contact-title">电话客服</div>
                    <div class="contact-desc">快速解决问题</div>
                </div>
                
                <div class="contact-card">
                    <div class="contact-icon">
                        <i class="fas fa-comments"></i>
                    </div>
                    <div class="contact-title">在线咨询</div>
                    <div class="contact-desc">即时沟通</div>
                </div>
                
                <div class="contact-card">
                    <div class="contact-icon">
                        <i class="fas fa-envelope"></i>
                    </div>
                    <div class="contact-title">邮件反馈</div>
                    <div class="contact-desc">24小时内回复</div>
                </div>
                
                <div class="contact-card">
                    <div class="contact-icon">
                        <i class="fas fa-question-circle"></i>
                    </div>
                    <div class="contact-title">帮助中心</div>
                    <div class="contact-desc">自助查询</div>
                </div>
            </div>
            
            <div class="faq-section">
                <div class="section-title">
                    <span>常见问题</span>
                    <a href="#" class="view-all">查看全部</a>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question" onclick="toggleAnswer(this)">
                        <span>如何修改收货地址？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        进入"我的"-"地址管理"，可以添加、编辑或删除收货地址。修改后记得点击保存。
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question" onclick="toggleAnswer(this)">
                        <span>积分如何获取和使用？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        可以通过每日签到、发布物品、完成交易等方式获取积分。积分可在积分商城兑换商品或优惠券。
                    </div>
                </div>
                
                <div class="faq-item">
                    <div class="faq-question" onclick="toggleAnswer(this)">
                        <span>交易纠纷如何处理？</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="faq-answer">
                        如遇交易纠纷，请先与对方沟通协商。若无法解决，可联系客服提供交易记录和相关证据，我们会介入处理。
                    </div>
                </div>
                
                <div class="service-hours">
                    <i class="fas fa-clock"></i> 客服工作时间：周一至周日 9:00-21:00
                </div>
            </div>
            
            <div class="self-service">
                <div class="section-title">自助服务</div>
                
                <div class="service-item">
                    <div class="service-info">
                        <div class="service-icon">
                            <i class="fas fa-sync-alt"></i>
                        </div>
                        <div class="service-title">交易退款申请</div>
                    </div>
                    <div class="arrow">›</div>
                </div>
                
                <div class="service-item">
                    <div class="service-info">
                        <div class="service-icon">
                            <i class="fas fa-shield-alt"></i>
                        </div>
                        <div class="service-title">账号申诉</div>
                    </div>
                    <div class="arrow">›</div>
                </div>
                
                <div class="service-item">
                    <div class="service-info">
                        <div class="service-icon">
                            <i class="fas fa-ban"></i>
                        </div>
                        <div class="service-title">举报用户</div>
                    </div>
                    <div class="arrow">›</div>
                </div>
                
                <div class="service-item">
                    <div class="service-info">
                        <div class="service-icon">
                            <i class="fas fa-box-open"></i>
                        </div>
                        <div class="service-title">物流查询</div>
                    </div>
                    <div class="arrow">›</div>
                </div>
            </div>
            
            <div class="contact-info">
                <div class="info-item">
                    <div class="info-icon">
                        <i class="fas fa-phone"></i>
                    </div>
                    <div class="info-content">
                        <div class="info-title">客服电话</div>
                        <div class="info-desc">400-123-4567（工作日 9:00-21:00）</div>
                    </div>
                </div>
                
                <div class="info-item">
                    <div class="info-icon">
                        <i class="fas fa-envelope"></i>
                    </div>
                    <div class="info-content">
                        <div class="info-title">客服邮箱</div>
                        <div class="info-desc">support@linli.com（24小时内回复）</div>
                    </div>
                </div>
                
                <div class="info-item">
                    <div class="info-icon">
                        <i class="fab fa-weixin"></i>
                    </div>
                    <div class="info-content">
                        <div class="info-title">微信公众号</div>
                        <div class="info-desc">搜索"邻里社区"或扫描二维码关注</div>
                    </div>
                </div>
            </div>
            
            <div class="rating">
                <div>
                    <div class="rating-text">您对客服服务满意吗？</div>
                    <div style="text-align: center;">
                        <span class="star" onmouseover="rate(1)" onclick="setRating(1)">★</span>
                        <span class="star" onmouseover="rate(2)" onclick="setRating(2)">★</span>
                        <span class="star" onmouseover="rate(3)" onclick="setRating(3)">★</span>
                        <span class="star" onmouseover="rate(4)" onclick="setRating(4)">★</span>
                        <span class="star" onmouseover="rate(5)" onclick="setRating(5)">★</span>
                    </div>
                </div>
            </div>
            
            <div class="menu">
                <div class="menu-item">
                    <span>我的发布</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的订单</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的帖子</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>我的兑换</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>设置</span>
                    <span class="arrow">›</span>
                </div>
                <div class="menu-item">
                    <span>关于邻里</span>
                    <span class="arrow">›</span>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 返回按钮功能
        document.querySelector('.back-btn').addEventListener('click', function() {
            alert('返回上一页');
            // 实际应用中这里应该是 history.back() 或路由跳转
        });
        
        // 常见问题展开/收起
        function toggleAnswer(element) {
            const answer = element.nextElementSibling;
            const icon = element.querySelector('i');
            
            answer.classList.toggle('show');
            if (answer.classList.contains('show')) {
                icon.classList.remove('fa-chevron-down');
                icon.classList.add('fa-chevron-up');
            } else {
                icon.classList.remove('fa-chevron-up');
                icon.classList.add('fa-chevron-down');
            }
        }
        
        // 评分功能
        let currentRating = 0;
        
        function rate(num) {
            const stars = document.querySelectorAll('.star');
            stars.forEach((star, index) => {
                if (index < num) {
                    star.classList.add('active');
                } else {
                    star.classList.remove('active');
                }
            });
        }
        
        function setRating(num) {
            currentRating = num;
            alert(`感谢您的评分！您给出了 ${num} 星评价。`);
            // 实际应用中这里应该提交评分到服务器
        }
        
        // 联系方式点击事件
        document.querySelectorAll('.contact-card').forEach(card => {
            card.addEventListener('click', function() {
                const title = this.querySelector('.contact-title').textContent;
                alert(`即将跳转到${title}页面`);
                // 实际应用中这里应该是跳转到相应的联系页面
            });
        });
        
        // 自助服务点击事件
        document.querySelectorAll('.service-item').forEach(item => {
            item.addEventListener('click', function() {
                const title = this.querySelector('.service-title').textContent;
                alert(`即将跳转到${title}页面`);
                // 实际应用中这里应该是跳转到相应的自助服务页面
            });
        });
    </script>
</body>
</html>